import request from '@/utils/request'



export default {
    doLogin(username, password) {
        return request({
            url: '/sys/login',
            method: 'POST',
            data: {
                username,
                password
            }
        })
    },
    getUserInfo(){
        return request({
            url: '/sys/profile',
            method: 'GET'
        })
    },
    getUserList(page, size){
        return request({
            url: `/user-manage/list?page=${page}&size=${size}`,
            method: 'GET',
        })
    },
    getUserDetail(id){
        return request({
            url: `/user-manage/detail/${id}`,
            method: 'GET',
        })
    },
    delUser(id){
        return request({
            url: `/user-manage/detele/${id}`,
            method: 'GET',
        })
    },
}